﻿using BasePlatformNet;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace L9SubSet
{
    public partial class Form_UID : Form
    {
        private BaseCoreNet baseCoreNet;

        public Form_UID(BaseCoreNet netcore)
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            byte[] uid = Tools.StringToHexByte(UIDTextBox.Text);
            if (uid.Length != 6)
            {
                MessageBox.Show("UID错误");
                return;
            }

            baseCoreNet.setLampUID(1, 1, 1, uid);
        }
    }
}
